import { request } from '../utils/request' 

// 通过企业名查询企业
export function list (data) {
    return request({
      url: `/app/enterprise/province/no/page/list`,
      method: 'get',
      data
    })
}
// 绑定企业 单独使用只穿 信用代码 和 用户id
export function save (data) {
    return request({
        url: `/app/enterprise/province/existing/save`,
        method: 'post',
        data
      })
}


// 绑定企业 传企业所有信息
export function userSave (data) {
    return request({
        url: `/app/enterprise/province/app/user/save`,
        method: 'post',
        data
      })
}


export function userList (data) {
    return request({
        url: `/app/enterprise/province/user/list`,
        method: 'get',
        data
      })
}

// 发布需求
export function informationSave (data) {
    return request({
        url: `/app/information/save`,
        method: 'post',
        data
      })
}
// 申请产品
export function applicationSave (data) {
    return request({
        url: `/app/information/enterprise/application/save`,
        method: 'post',
        data
      })
}
// false 没有被绑定 true 已经被绑定
export function verifyPresence (data) {
    return request({
        url: `/app/user/verify/presence`,
        method: 'get',
        query:true,
        data
      })
}

// 查看是否已经申请
export function provinceApply(data) {
    return request({
        url: `/sys/enterprise/application/record/province/get/apply`,
        method: 'get',
        query:true,
        data
      })
}

// 生成报告
export function saveReport(data) {
    return request({
        url: `/app/application/financing/needs/enterprise/application/saveReport`,
        method: 'post',
        data
      })
}